//
//  DiscoverModelSecond.m
//  XYFMApp
//
//  Created by 岁变 on 16/9/1.
//  Copyright © 2016年 岁变. All rights reserved.
//

#import "DiscoverModelSecond.h"

#import "XYMacro.h"

@implementation DiscoverModelSecond

- (void)setValue:(id)value forKey:(NSString *)key {
    
    if ([key isEqualToString:@"status"]) {
        _status = [DiscoverModelSecondStatus modelWithDictionary:value];
    }
    if ([key isEqualToString:@"data"]) {
        NSMutableArray *mArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DiscoverModelSecondContant *model = [DiscoverModelSecondContant modelWithDictionary:dic];
            [mArr addObject:model];
        }
        self.data = mArr;
    }
}

@end
